#!/usr/bin/env python
# coding=utf-8
"""
# @Created on : 2017/08/25 11:46
# @Author     : ldf (ldf@eehello.com)
# @Link       : http://www.eehello.com
# @Version    : 
# 本程序在python2.7下测试通过
"""


from flask import Flask, render_template
#from flask.ext.bootstrap import Bootstrap
#此写法会导致“Importing flask.ext.bootstrap is deprecated, use flask_bootstrap instead.”警告
from flask_bootstrap import Bootstrap


app = Flask(__name__)
bootstrap = Bootstrap(app)


@app.route('/')
def index():
    return render_template('index.html')

@app.route('/user/<name>')
def user(name):
    return render_template('user.html', name=name)

if __name__ == '__main__':
    app.run(debug=True)

